package com.meituan.sdk.model.tuangouNg.atomgoods.productTableStatusUpdate;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 更新桌台使用状态
* This file was automatically generated.
*/
@ApiMeta(
    path = "/tuangou/ng/atomgoods/product/table/status/update",
    businessId = 1,
    apiVersion = "10027",
    apiName = "product_table_status_update",
    needAuth = true
)
public class ProductTableStatusUpdateRequest implements MeituanRequest<ProductTableStatusUpdateResponse> {
    /**
    * <p data-diff-id="ct-diff-id-474c61af-9d01-483d-8530-4183bcd33674">附件信息/加价属性类型，1-总部, 2-门店</p>
    */
    @NotNull(message = "scope不能为空")
    @SerializedName("scope")
    private Integer scope;
    /**
    * <p data-diff-id="ct-diff-id-493d97c3-7748-49a2-bcde-0c256444b1dd">总部code，当scope = 1时必填</p>
    */
    @SerializedName("vendorChainId")
    private String vendorChainId;
    /**
    * <p data-diff-id="ct-diff-id-c26ce316-2549-48b6-9af3-73a9418817cb">门店code，当scope = 2时必填</p>
    */
    @SerializedName("vendorShopId")
    private String vendorShopId;
    /**
    * <p data-diff-id="ct-diff-id-592b207d-ae8b-41b3-8709-52dd5aae88a4">餐盒列表</p>
    */
    @NotEmpty(message = "tableStatusList不能为空")
    @SerializedName("tableStatusList")
    private List<TableStatusListSub> tableStatusList;

    public Integer getScope() {
        return scope;
    }
    public void setScope(Integer scope) {
        this.scope = scope;
    }
    public String getVendorChainId() {
        return vendorChainId;
    }
    public void setVendorChainId(String vendorChainId) {
        this.vendorChainId = vendorChainId;
    }
    public String getVendorShopId() {
        return vendorShopId;
    }
    public void setVendorShopId(String vendorShopId) {
        this.vendorShopId = vendorShopId;
    }
    public List<TableStatusListSub> getTableStatusList() {
        return tableStatusList;
    }
    public void setTableStatusList(List<TableStatusListSub> tableStatusList) {
        this.tableStatusList = tableStatusList;
    }


    @Override
    public MeituanResponse<ProductTableStatusUpdateResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<ProductTableStatusUpdateResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "ProductTableStatusUpdateRequest{" + "scope=" + scope + "," + "vendorChainId=" + vendorChainId + "," + "vendorShopId=" + vendorShopId + "," + "tableStatusList=" + tableStatusList + "}";
    }
}
